<!--
 * @Description:
 * @Author: dh
 * @Date: 2022-01-21 13:41:19
 * @LastEditors: dh
 * @LastEditTime: 2022-01-21 17:46:36
-->
<template>
	<div id="box" v-bind="{ id: 'test' }" ref="mybox">请看id,vue2.0,v-bind里面的属性是不会覆盖原有属性的</div>
</template>

<script>
import { defineComponent } from 'vue';

export default defineComponent({
	setup() {
		return {};
	},
	mounted() {
		console.log(this.$refs.mybox.id);
	},
});
</script>
